package com.example.backend.model;

import com.example.backend.entity.Disease;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class DiseaseModel extends BaseModel{
    @JsonProperty("data")
    List<Disease> data;
    public DiseaseModel(int code,String result,List<Disease> diseases){
        this.code=code;
        this.result=result;
        this.count=diseases.size();
        this.data=diseases;
    }
}
